<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>11.扩展运算符</title>
</head>
<body>

<script>
  let arr = [1,2,3]

  function f1(a,b,c) {
    console.log(a)
    console.log(b)
    console.log(c)

    console.log(arguments)
  }

  //将整个数组作为参数传入函数
  f1(arr)
  console.log('--------------------')
  //使用扩展运算符分解
  f1(...arr)
</script>
</body>
</html>